|
CallGraph
|
00001 /*************************************************************** 00002 * Name: confcallgraph.h 00003 * Purpose: Header to store values. 00004 * Author: Vaclav Sprucek 00005 * Created: 2012-03-04 00006 * Copyright: Vaclav Sprucek 00007 * License: wxWidgets license (www.wxwidgets.org) 00008 * Notes: 00009 **************************************************************/ 00010 00011 #ifndef __confcallgraph__ 00012 #define __confcallgraph__ 00013 00014 #include "serialized_object.h" 00015 #include <wx/msgdlg.h> 00020 class ConfCallGraph : public SerializedObject 00021 { 00022 wxString m_gprofPath; 00023 wxString m_dotPath; 00024 00025 int m_colorsNode; 00026 int m_colorsEdge; 00027 00028 int m_tresholdNode; 00029 int m_tresholdEdge; 00030 00031 bool m_boxName; 00032 bool m_boxParam; 00033 00034 public: 00038 ConfCallGraph(); 00042 virtual ~ConfCallGraph(); 00043 00044 public: 00045 virtual void DeSerialize(Archive &arch); 00046 virtual void Serialize(Archive &arch); 00047 // 00048 // 00049 // 00050 // just wxStrings are pointers 00051 void SetGprofPath(const wxString& gprofPath) { 00052 this->m_gprofPath = gprofPath; 00053 } 00054 00055 void SetDotPath(const wxString& dotPath) { 00056 this->m_dotPath = dotPath; 00057 } 00058 00059 void SetColorsNode(int colorsNode){ 00060 this->m_colorsNode = colorsNode; 00061 } 00062 00063 void SetColorsEdge(int colorsEdge){ 00064 this->m_colorsEdge = colorsEdge; 00065 } 00066 00067 void SetTresholdNode(int trashNode){ 00068 this->m_tresholdNode = trashNode; 00069 } 00070 00071 void SetTresholdEdge(int trashEdge){ 00072 this->m_tresholdEdge = trashEdge; 00073 } 00074 00075 void SetBoxName(bool boxName){ 00076 this->m_boxName = boxName; 00077 } 00078 00079 void SetBoxParam(bool boxParam){ 00080 this->m_boxParam = boxParam; 00081 } 00082 00084 // just wxStrings are pointers 00085 const wxString& GetGprofPath() const { 00086 return m_gprofPath; 00087 } 00088 00089 const wxString& GetDotPath() const { 00090 return m_dotPath; 00091 } 00092 00093 int GetColorsNode() { 00094 return m_colorsNode; 00095 } 00096 00097 int GetColorsEdge() { 00098 return m_colorsEdge; 00099 } 00100 00101 int GetTresholdNode() { 00102 return m_tresholdNode; 00103 } 00104 00105 int GetTresholdEdge() { 00106 return m_tresholdEdge; 00107 } 00108 00109 bool GetBoxName() { 00110 return m_boxName; 00111 } 00112 00113 bool GetBoxParam() { 00114 return m_boxParam; 00115 } 00116 00117 00118 }; 00119 #endif // __confcallgraph__